﻿<ribbon:RibbonWindow x:Class="CentroVentas.MainWindow"
                     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                     xmlns:ribbon="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
                     Title="CentroVentas"
                     x:Name="RibbonWindow"
                     Width="640"
                     Height="480"
                     WindowState="Maximized"
                     WindowStartupLocation="CenterScreen"
                     Loaded="RibbonWindow_Loaded"
                     Icon="Images\cart.ico">
    <Grid x:Name="LayoutRoot">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="287*"/>
            <ColumnDefinition Width="337*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="20" />
        </Grid.RowDefinitions>
        <ribbon:Ribbon Name="RibbonBar"
                       
                       HorizontalContentAlignment="Stretch"
                       IsManipulationEnabled="False"
                       IsMinimized="False"
                       Margin="0,0,0,1"
                        Grid.ColumnSpan="2"
                       Grid.Column="0"
                       Grid.Row="0">
            <!--MENU PRINCIPAL-->
            <ribbon:Ribbon.ApplicationMenu>
                <ribbon:RibbonApplicationMenu SmallImageSource="Images\SmallIcon.png">
                    <ribbon:RibbonApplicationMenuItem Header="Hello _Ribbon"
                                                      x:Name="MenuItem1"
                                                      ImageSource="Images\LargeIcon.png" />
                </ribbon:RibbonApplicationMenu>
            </ribbon:Ribbon.ApplicationMenu>
            <!--MENU PRINCIPAL-->
            <ribbon:RibbonQuickAccessToolBar FlowDirection="LeftToRight">
                <ribbon:RibbonButton x:Name="btnMinimizeButton"
                                     Label="Minimizar barra"
                                     Click="btnMinimizeButton_Click"
                                     SmallImageSource="/CentroVentas;component/Images/IMG_MINIMIZE.jpg"
                                     Content="Minimizar"
                                     LargeImageSource="/CentroVentas;component/Images/IMG_MINIMIZE.jpg"
                                     ToolTipDescription="Minimiza la barra de tareas de la aplicación."
                                     ToolTipTitle="Minimizar" />
                <ribbon:RibbonButton x:Name="btnHome"
                                     Label="Ir al Home"
                                     Click="btnHome_Click"
                                     Content="Minimizar"
                                     ToolTipDescription="Minimiza la barra de tareas de la aplicación."
                                     ToolTipTitle="Minimizar"
                                     SmallImageSource="/CentroVentas;component/Images/IMG_HOME.png" />
            </ribbon:RibbonQuickAccessToolBar>
            <!--TABULAR-->
            <ribbon:RibbonTab x:Name="Principal"
                              Header="Archivo">
                <ribbon:RibbonGroup x:Name="ArchivoPrincipal"
                                    Header="Principal">
                    <ribbon:RibbonButton x:Name="btnArchivoPrincipalHome"
                                         LargeImageSource="Images\IMG_HOME.png"
                                         Label="Home"
                                         Click="btnHome_Click" />
                    <ribbon:RibbonButton x:Name="btnArchivoPrincipalCerrarSesion"
                                         LargeImageSource="Images\IMG_LOGOUT.png"
                                         Label="Cerrar sesión"
                                         Click="btnArchivoPrincipalCerrarSesion_Click" />
                </ribbon:RibbonGroup>
            </ribbon:RibbonTab>
            <ribbon:RibbonTab x:Name="Ventas"
                              Header="Ventas">
                <ribbon:RibbonGroup x:Name="VentasGroup"
                                    Header="">
                    <ribbon:RibbonButton x:Name="btnVentasVentas"
                                         Label="Ventas"
                                         Click="btnVentasVentas_Click"/>
                </ribbon:RibbonGroup>
            </ribbon:RibbonTab>
            <ribbon:RibbonTab x:Name="Compras"
                              Header="Compras">
                <ribbon:RibbonGroup x:Name="ComprasGroup"
                                    Header="Compras">
                    <ribbon:RibbonButton x:Name="btnComprasGenerarCompra"
                                         Label="Generar Compra"
                                         LargeImageSource="Images\IMG_BUY.png"
                                         Click="btnComprasGenerarCompra_Click" />
                </ribbon:RibbonGroup>
                <ribbon:RibbonGroup x:Name="DetComprasGroup"
                                    Header="Detalle compras">
                    <ribbon:RibbonButton x:Name="btnCompras"
                                         Label="Listado de compras"
                                         LargeImageSource="Images\IMG_BUY.png"
                                         Click="BtnCompras_Click" />
                    <ribbon:RibbonButton x:Name="BtnConfirmarCompra"
                                         Label="Confirmar compra"
                                         LargeImageSource="Images\IMG_BUY.png"
                                         Click="BtnConfirmarCompra_Click" />
                </ribbon:RibbonGroup>
            </ribbon:RibbonTab>
            <ribbon:RibbonTab x:Name="ProveedoresTab"
                              Header="Proveedores">
                <ribbon:RibbonGroup x:Name="ProveedoresGroup"
                                    Header="Proveedores">
                    <ribbon:RibbonButton x:Name="btnProveedoresListar"
                                         Label="Proveedores"
                                         LargeImageSource="Images\IMG_PROVEEDOR.png"
                                         Click="btnProveedoresListar_Click" />
                </ribbon:RibbonGroup>
                <ribbon:RibbonGroup x:Name="ProveedoresAccionesGroup"
                                    Header="Acciones">
                    <ribbon:RibbonButton x:Name="btnCrearProveedores"
                                         Label="Crear Proveedores"
                                         LargeImageSource="Images\IMG_PROVEEDOR.png"
                                         Click="btnCrearProveedores_Click" />
                    <ribbon:RibbonButton x:Name="btnModificarProveedores"
                                         Label="Modificar Proveedores"
                                         LargeImageSource="Images\IMG_PROVEEDOR.png"
                                         Click="btnCrearProveedores_Click" />
                </ribbon:RibbonGroup>
                <ribbon:RibbonGroup x:Name="ProveedoresDetallesGroup"
                                    Header="Detalles">
                    <ribbon:RibbonButton x:Name="btnDetallarProveedor"
                                         Label="DetalleProveedor"
                                         LargeImageSource="Images\IMG_PROVEEDOR.png"
                                         Click="btnDetallarProveedor_Click"
                    />
                </ribbon:RibbonGroup>
            </ribbon:RibbonTab>
            <ribbon:RibbonTab x:Name="ProductosTab"
                              Header="Productos">
                <ribbon:RibbonGroup Name="ProductosGroup"
                                    Header="Productos">                    
                </ribbon:RibbonGroup>
                <ribbon:RibbonGroup Name="CategoriasGroup"
                                    Header="Categorias">
                    <ribbon:RibbonButton Name="btnCategoras"
                                         Label="Listar categorias"
                                         LargeImageSource="Images\IMG_PROVEEDOR.png"
                                         Click="btnCategoras_Click"/>
                </ribbon:RibbonGroup>
            </ribbon:RibbonTab>
            <ribbon:RibbonTab x:Name="Opciones"
                              Header="Opciones">
                <ribbon:RibbonGroup x:Name="OpcionesGenerales"
                                    Header="Opciones generales">
                    <ribbon:RibbonButton x:Name="btnOpcionesGenerales"
                                         LargeImageSource="Images\IMG_CONF.png"
                                         Label="Configuración"
                                         Click="btnOpcionesGenerales_Click" />
                </ribbon:RibbonGroup>
            </ribbon:RibbonTab>
        </ribbon:Ribbon>
        <!--TABULAR-->
        <Frame Name="ContentFrame"
               NavigationUIVisibility="Hidden"
               Navigating="ContentFrame_Navigating"
               ScrollViewer.CanContentScroll="True"
               ScrollViewer.HorizontalScrollBarVisibility="Auto"
               ScrollViewer.VerticalScrollBarVisibility="Auto" Grid.ColumnSpan="2" Margin="0,137,0,0" Grid.RowSpan="2"/>
        <StatusBar Grid.ColumnSpan="2"
                   Grid.Row="2">
            <StatusBarItem>
                <TextBlock x:Name="txtFecha" />
            </StatusBarItem>
            <StatusBarItem>
                <TextBlock x:Name="txtHora" />
            </StatusBarItem>
            <StatusBarItem>
                <TextBlock x:Name="txtUsuario"
                           Text="Sin identificar"/>
            </StatusBarItem>
        </StatusBar>
    </Grid>
</ribbon:RibbonWindow>
